import { createApp } from 'vue'

import router from"./router/index.js"
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import {$get, $postx, $postj, $postf } from './ajax/index.js'

import App from './App.vue'

import store from"./store/index.js"

import * as ElementPlusIconsVue from '@element-plus/icons-vue'




const app=createApp(App)

app.config.globalProperties.$get=$get;
app.config.globalProperties.$postf=$postf;
app.config.globalProperties.$postj=$postj;
app.config.globalProperties.$postx=$postx;

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.config.globalProperties.$ip="http://127.0.0.1:8080";

app.use(ElementPlus)
app.use(store)
app.use(router)
app.mount('#app')

